html[data-theme] {
  input:-webkit-autofill {
    box-shadow: none;
  }

  :-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
  }

  .ant-picker-input>input {
    border-color: transparent;

    &:focus,
    &:hover,
    &-focused {
      border-color: transparent;
      box-shadow: 0 0 0 0;
    }
  }
}

html[data-theme="light"] {
  .text-secondary {
    color: rgb(0 0 0 / 45%);
  }

  .ant-alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
  }

  .ant-alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
  }

  .ant-alert-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
  }

  :not(:root):fullscreen::backdrop {
    background-color: @layout-body-background !important;
  }

  .ant-tag-blue {
    background-color: #e6f7ff;
  }
}

html[data-theme="dark"] {
  :-webkit-autofill {
    box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: #c9d1d9;
  }

  input:autofill {
    box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: #c9d1d9;
  }

  .text-secondary {
    color: #8b949e;
  }

  .ant-card-grid-hoverable:hover {
    box-shadow:
      0 3px 6px -4px rgb(0 0 0 / 48%),
      0 6px 16px 0 rgb(0 0 0 / 32%),
      0 9px 28px 8px rgb(0 0 0 / 20%);
  }

  .ant-card-grid {
    box-shadow:
      1px 0 0 0 #434343,
      0 1px 0 0 #434343,
      1px 1px 0 0 #434343,
      1px 0 0 0 #434343 inset,
      0 1px 0 0 #434343 inset;
  }

  .ant-calendar-selected-day .ant-calendar-date {
    color: rgb(0 0 0 / 80%);
  }

  .ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {
    background-color: rgba(255, 255, 255, 0.08);
  }


  .ant-cascader-menu-item-active {

    &:not(.ant-cascader-menu-item-disabled),
    &:not(.ant-cascader-menu-item-disabled):hover {
      background-color: rgba(255, 255, 255, 0.08);
    }
  }
}